#coding=utf-8
__author__ = 'chutf'
__date__ = '2020/4/5 19:10'

from django.conf.urls import url
from users.views import UserInfoView,ImageUploadView,UpdatePwdView
from  users.views import SendEmailCodeView,UpdateEmailView,MyCourses
from  users.views import MyFavOrgView,MyFavTeacherView,MyFavCourseView,MyMessageView


urlpatterns = [
    url(r'^info/$', UserInfoView.as_view(), name="user_info"),
    #修改头像
    url(r'^image/upload/$', ImageUploadView.as_view(), name="image_upload"),
    #个人中心的修改密码
    url(r'^update/pwd/$', UpdatePwdView.as_view(), name="update_pwd"),
    #个人中心的邮箱验证码发送
    url(r'^sendemail_code/$', SendEmailCodeView.as_view(), name="sendemail_code"),
    #个人中心的邮箱验证码发送
    url(r'^update_email/$', UpdateEmailView.as_view(), name="update_email"),

    # 我的课程
    url(r'^mycourses/$', MyCourses.as_view(), name="mycourses"),

    # 我的收藏--机构
    url(r'^myfav/org/$', MyFavOrgView.as_view(), name="myfav_org"),
    # 我的收藏--讲师
    url(r'^myfav/teacher/$', MyFavTeacherView.as_view(), name="myfav_teacher"),
    # 我的收藏--课程
    url(r'^myfav/course/$', MyFavCourseView.as_view(), name="myfav_course"),

    # 我的消息
    url(r'^mymessage/$', MyMessageView.as_view(), name="mymessage"),
]